package org.example.completed.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2025-04-07
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("adoption_record")
public class AdoptionRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    private String userId;

    private String petId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime adoptionTime;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    private String userAcoount; // 用户名

    private String avatarUrl;     // 头像

    private String petName;
}
